import numpy as np

matrix_a= np.array([[342,218, 1], [440,236, 1], [193,265, 1]]).T
matrix_b= np.array([[260.757080078125, -23.191001892089844, 1], [246.45404052734375, -131.0744171142578, 1], [211.62754821777344, 134.30296325683594,1]]).T
matrix_a_inv = np.linalg.inv(matrix_a)
transformation_matrix = np.dot(matrix_b, matrix_a_inv)
print("Transformation Matrix:")
print(transformation_matrix)
test=np.array([289,232, 1]).T
transformed_point = np.dot(transformation_matrix, test)
print("Transformed Point:")
print(transformed_point)